package com.wuye.charge.controller;

import com.wuye.charge.domain.WyTb;
import com.wuye.charge.service.WyTbService;
import com.wuye.common.core.domain.AjaxResult;
import com.wuye.common.core.page.TableDataInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

import static com.wuye.common.core.domain.AjaxResult.success;

/**
 * @ClassName WyTbController
 * @Description TODO
 * @Author ls
 * @Date 2024年11月28日 12:15
 * @Version 1.0
 */
@RestController
@RequestMapping("/charge/tb")
public class WyTbController {
    @Autowired private WyTbService wyTbService;
    @GetMapping("/list")
    public AjaxResult list(){
        List<WyTb> list = wyTbService.list();
        return success(list);
    }
}
